package com.mobile.ado;

import java.util.ArrayList;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.mobile.ado.contacts.ContactsActivity;
import com.mobile.ado.data.TabBarConstants;
import com.mobile.ado.message.MessagesActivity;
import com.mobile.ado.setting.SettingsActivity;
import com.mobile.ado.tabbar.TabbarActivity;
import com.mobile.ado.tools.ToolsActivity;

public class KdoMessenger extends TabbarActivity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	protected int[] getImageResourceArray() {
		return TabBarConstants.tabImages;
	}

	@Override
	protected String[] getMenuNameArray() {
		return TabBarConstants.menuNames;
	}

	@Override
	protected int getTabNumber() {
		return TabBarConstants.menuNames.length;
	}

	@Override
	protected ArrayList<Intent> getIntents() {
		ArrayList<Intent> intents = new ArrayList<Intent>();
		intents.add(new Intent(this, MessagesActivity.class));
		intents.add(new Intent(this, ContactsActivity.class));
		intents.add(new Intent(this, ToolsActivity.class));
		intents.add(new Intent(this, SettingsActivity.class));

		return intents;
	}

	@Override
	protected OnClickListener getRightTopViewOnclickListener() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	protected int[] getRightTopViewVisibility() {
		return new int[] { View.VISIBLE, View.INVISIBLE, View.INVISIBLE,
				View.INVISIBLE };
	}
}